//Function: showing the usage of switch
#include <iostream>
using namespace std;

int main()
{
	int grade = 0;
	int aCount = 0;
	int bCount = 0;
	
	cout << "Enter the letter of grade." <<endl
		 << "Enter the EOF character to end." << endl; 
	while( (grade = cin.get()) != EOF )
	{
		cout << (char)grade;
//		switch(grade)
//		{
//			case 'a':
//				aCount++;
//				break;
//			case 'B':
//			case 'b':
//				bCount++;
//				break;
//			case '\n':
//			case '\t':
//			case ' ':
//				break;
//			default:
//				cout << "\nIncorrect letter grade entered."
//					 << "Please enter the new grade." << "\n";
//				break;
//		}
	}
	
	cout << "\nA:" << aCount
		 << "\nB:" << bCount 
		 << endl;
	return 0;
}
